package com.briup.jd2407cms.web.controller;

import com.briup.jd2407cms.result.Result;
import com.briup.jd2407cms.service.RoleService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @BelongsProject: cms2
 * @BelongsPackage: com.briup.jd2407cms.web.controller
 * @Author: wangjie
 * @CreateTime: 2024-11-20  11:23
 * @Description: TODO
 * @Version: 1.0
 */
@Api(tags = "角色模块")
@RestController
@RequestMapping("/auth/role")
public class RoleController {

    @Autowired
    RoleService roleService;
    @ApiOperation("查询所有角色")
    @GetMapping("/getAll")
    private Result getAll(){
        return Result.success(roleService.list());
    }
}
